module.exports = function (req, res, next) {
    if(!req.session.client_login_info) {
        if(req.xhr || /json/i.test(req.headers.accept)) {
            res.jsonWrap(null,-999,'请重新登录');
        }
    } else {
        next();
    }
};